<?php /* Smarty version 2.6.20, created on 2013-05-25 07:02:09
         compiled from _core/_include/module/_mvc/view/dialogobject.tpl */ ?>
function DialogObject(container, item, options) {
  this._container = container;
  this._item = item;
  this._options = options;
  
  this._createElements();
};

DialogObject.prototype._createElements = function() {
  var table, tr, td, unique = MiscUtils.unique();
  
  table = document.createElement('table');
  table.cellPadding = 0;
  table.cellSpacing = 0;
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.colSpan = 6;
  var table1 = document.createElement('table');
  table1.cellPadding = 0;
  table1.cellSpacing = 0;
  table1.style.margin = '10px 0 5px';
  td.appendChild(table1);
  var tr1 = table1.insertRow(-1);
  var td1 = tr1.insertCell(-1);
  td1.style.textAlign = 'left';
  td1.style.width = '50px';
  td1.style.fontSize = '13px';
  td1.appendChild(document.createTextNode('other'));
  td1 = tr1.insertCell(-1);
  td1.style.textAlign = 'left';
  var input = DOMUtils.createInput('', unique + '_object_text', 'text', '', null);
  input.style.width = '188px';
  input.style.height = '18px';
  td1.appendChild(input);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.width = '720px';
  td.colSpan = 6;
  td.style.paddingBottom = '10px';
  var object = document.createElement('table');
  object.cellPadding = 0;
  object.cellSpacing = 0;
  object.style.width = '720px';
  object.className = "object";
  object.id = unique + '_objects_table';
  td.appendChild(object);
  
  tr = object.insertRow(-1);
  tr.style.backgroundColor = '#ddd';
  td = tr.insertCell(-1);
  td.colSpan = 6;
  td.style.fontWeight = 'bold';
  td.style.paddingLeft = '10px';
  td.style.textAlign = 'left';
  td.appendChild(document.createTextNode(this._options.title));
  
  var gui = GuiDialogObject.instance(unique);
  new HandleDialogObject(gui, this._item, this._options);
};